package soccer.view;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;

public class MainOptionPanel extends JPanel {
	private JButton btnAdmin;
	private JButton btnUser;
	private JLabel lblSoccerLeagueManagement;

	/**
	 * Create the panel.
	 */
	public MainOptionPanel() {
		setLayout(null);
		
		btnAdmin = new JButton("Admin");
		btnAdmin.setBounds(77, 100, 89, 23);
		add(btnAdmin);
		
		btnUser = new JButton("User");
		btnUser.setBounds(237, 100, 89, 23);
		add(btnUser);
		
		lblSoccerLeagueManagement = new JLabel("SOCCER LEAGUE MANAGEMENT");
		lblSoccerLeagueManagement.setBounds(124, 35, 164, 14);
		add(lblSoccerLeagueManagement);

	}

	public void selectAdminAction(ActionListener l){
		btnAdmin.addActionListener(l);
	}
	public void selectUserAction(ActionListener l){
		btnUser.addActionListener(l);
	}
	public JButton getBtnAdmin() {
		return btnAdmin;
	}

	public void setBtnAdmin(JButton btnAdmin) {
		this.btnAdmin = btnAdmin;
	}

	public JButton getBtnUser() {
		return btnUser;
	}

	public void setBtnUser(JButton btnUser) {
		this.btnUser = btnUser;
	}

	public JLabel getLblSoccerLeagueManagement() {
		return lblSoccerLeagueManagement;
	}

	public void setLblSoccerLeagueManagement(JLabel lblSoccerLeagueManagement) {
		this.lblSoccerLeagueManagement = lblSoccerLeagueManagement;
	}
	
}
